import 'package:flutter/material.dart';

import 'package:get/get.dart';
import './splash_controller.dart';

class SplashView extends GetView<SplashController> {
  const SplashView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        // backgroundColor: const Color(0x00ffffff),
        body: Stack(
          children: [
            Image.asset("assets/images/bg_splash.png", width: context.width, height: context.height,fit:BoxFit.fill),
            Positioned(
              top: 50,
              right: 30,
              child: Obx(() => Visibility(
                  visible: controller.str.isNotEmpty,
                  child: InkWell(
                    // onTap: ()=> controller.next(),
                    child: Container(
                      padding: const EdgeInsets.symmetric(vertical: 3,horizontal: 9),
                      decoration: const BoxDecoration(
                          color: Color(0x7ee5e5e5),
                          borderRadius: BorderRadius.all(Radius.circular(12))
                      ),
                      child: Text('${controller.str}',style: const TextStyle(fontSize: 12,color: Color(0xff333333)))
                    ),
                  )
              )),
            ),
          ],
        )
    );
  }
}

